OpenOCD Configuration File

If a configuration file is not specified, openocd will try to find and read one called openocd.cfg. That file can be placed in the same directory as the openocd executable.

Below is a configuration for the Olimex ARM-USB-OCD jtag and the Olimex LPC2378STK board.

It first uses the interface and board configurations that come with the openocd sources in the tcl folder.

It then sets the telnet and gdb_port’s for use with the gdb debugger.

openocd.cfg

# JTAG interface configuration

source [find interface/olimex-arm-usb-ocd.cfg]

# Board configuration

source [find board/olimex_LPC2378STK.cfg]


telnet_port 4444

#
# GDB Port for First Target
#

gdb_port 3333


#
# Tell gdb our flash memory map
# and enable flash programming
#

gdb_memory_map enable
gdb_flash_program enable


#
# Target Configuration
#
# simply attach or reset upon startup
#daemon_startup <'attach'|'reset'>

daemon_startup reset

Table Of Contents

Previous topic

OpenOCD - Open On-Chip Debugger (JTAG)

Next topic

OpenOCD and GDB

This Page